package models;

public class Attendant {
	private int id;
	private Student student;
	private TeachingSession session;
	private Course course;
	private String courseName;
	private String sessionName;
	private int status; //presence = 0, absence with permit = 1, absence without permit = 2 
	
	
	public int getId() {
		return this.id;
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public TeachingSession getTeachingSession() {
		return session;
	}

	public void setTeachingSession(TeachingSession session) {
		this.session = session;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getSessionName() {
		return sessionName;
	}

	public void setSessionName(String sessionName) {
		this.sessionName = sessionName;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getStatusName() {
		switch(status){
		case 1: return "Absence with permission";
		case 2: return "Absence";
		default: return "Presence";
		}
	}
}
